home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / System / XADmaster / xad_dev / Include / C / clib / xadmaster_protos.h
Encoding:
C/C++ Source or Header  |  2001-04-01  |  3.0 KB  |  92 lines

  1. #ifndef  CLIB_XADMASTER_PROTOS_H
  2. #define  CLIB_XADMASTER_PROTOS_H
  3.  
  4. /*
  5. **    $VER: clib/xadmaster_protos.h 10.0 (24.02.2001)
  6. **    xadmaster.library function prototypes
  7. **
  8. **    Copyright © 1998-2001 by Dirk Stöcker
  9. **    All Rights Reserved.
  10. */
  11.  
  12. #ifndef EXEC_TYPES_H
  13. #include <exec/types.h>
  14. #endif
  15.  
  16. #ifndef UTILITY_TAGITEM_H
  17. #include <utility/tagitem.h>
  18. #endif
  19.  
  20. #ifndef LIBRARIES_XADMASTER_H
  21. #include <libraries/xadmaster.h>
  22. #endif
  23.  
  24. APTR xadAllocObjectA(LONG type, struct TagItem *tags);
  25. APTR xadAllocObject(LONG type, Tag tag1, ...);
  26.  
  27. void xadFreeObjectA(APTR object, struct TagItem *tags);
  28. void xadFreeObject(APTR object, Tag tag1, ...);
  29.  
  30. struct xadClient *xadRecogFileA(ULONG size, APTR memory,
  31.     struct TagItem *tags);
  32. struct xadClient *xadRecogFile(ULONG size, APTR memory, Tag tag1, ...);
  33.  
  34. LONG xadGetInfoA(struct xadArchiveInfo *ai, struct TagItem *tags);
  35. LONG xadGetInfo(struct xadArchiveInfo *ai, Tag tag1, ...);
  36.  
  37. void xadFreeInfo(struct xadArchiveInfo *ai);
  38.  
  39. LONG xadFileUnArcA(struct xadArchiveInfo *ai, struct TagItem *tags);
  40. LONG xadFileUnArc(struct xadArchiveInfo *ai, Tag tag1, ...);
  41.  
  42. LONG xadDiskUnArcA(struct xadArchiveInfo *ai, struct TagItem *tags);
  43. LONG xadDiskUnArc(struct xadArchiveInfo *ai, Tag tag1, ...);
  44.  
  45. STRPTR xadGetErrorText(ULONG errnum);
  46.  
  47. struct xadClient *xadGetClientInfo(void);
  48.  
  49. /* these functions can be called from client functions only! */
  50. LONG xadHookAccess(ULONG command, LONG data, APTR buffer,
  51.     struct xadArchiveInfo *ai);
  52. LONG xadHookTagAccessA(ULONG command, LONG data, APTR buffer,
  53.     struct xadArchiveInfo *ai, struct TagItem *tags);
  54. LONG xadHookTagAccess(ULONG command, LONG data, APTR buffer,
  55.     struct xadArchiveInfo *ai, Tag tag1, ...);
  56.  
  57. LONG xadConvertDatesA(struct TagItem *tags);
  58. LONG xadConvertDates(Tag tag1, ...);
  59.  
  60. UWORD xadCalcCRC16(UWORD id, UWORD init, ULONG size, STRPTR buffer);
  61. ULONG xadCalcCRC32(ULONG id, ULONG init, ULONG size, STRPTR buffer);
  62.  
  63. APTR xadAllocVec(ULONG size, ULONG flags);
  64. void xadCopyMem(APTR src, APTR dest, ULONG size);
  65.  
  66. LONG xadConvertProtectionA(struct TagItem *tags);
  67. LONG xadConvertProtection(Tag tag1, ...);
  68.  
  69. LONG xadGetDiskInfoA(struct xadArchiveInfo *ai, struct TagItem *tags);
  70. LONG xadGetDiskInfo(struct xadArchiveInfo *ai, Tag tag1, ...);
  71.  
  72. LONG xadDiskFileUnArcA(struct xadArchiveInfo *ai, struct TagItem *tags);
  73. LONG xadDiskFileUnArc(struct xadArchiveInfo *ai, Tag tag1, ...);
  74.  
  75. LONG xadGetHookAccessA(struct xadArchiveInfo *ai, struct TagItem *tags);
  76. LONG xadGetHookAccess(struct xadArchiveInfo *ai, Tag tag1, ...);
  77.  
  78. LONG xadFreeHookAccessA(struct xadArchiveInfo *ai, struct TagItem *tags);
  79. LONG xadFreeHookAccess(struct xadArchiveInfo *ai, Tag tag1, ...);
  80.  
  81. LONG xadAddFileEntryA(struct xadFileInfo *fi, struct xadArchiveInfo *ai,
  82. struct TagItem *tags);
  83. LONG xadAddFileEntry(struct xadFileInfo *fi, struct xadArchiveInfo *ai,
  84. Tag tag1, ...);
  85.  
  86. LONG xadAddDiskEntryA(struct xadDiskInfo *di, struct xadArchiveInfo *ai,
  87. struct TagItem *tags);
  88. LONG xadAddDiskEntry(struct xadDiskInfo *di, struct xadArchiveInfo *ai,
  89. Tag tag1, ...);
  90.  
  91. #endif    /* CLIB_XADMASTER_PROTOS_H */
  92.